<?php

class PageLogon extends Page
{

	public function getHTML()
	{
		$html = "<html>\n";
		$html .= "<head>\n";
		$html .= "<title>SNAP - Logon</title>\n";
		if (count($this->StyleSheets)>0)
		{
			foreach($this->StyleSheets as $stylesheet)
			{
				$html .= "<link rel=\"stylesheet\" type=\"text/css\" href=\"".$stylesheet."\" />\n";
			}
		}
		else
		{
			$stylesheet = "http://".$_SERVER['SERVER_NAME']."/snap/Styles/snap.css";
			$html .= "<link rel=\"stylesheet\" type=\"text/css\" href=\"".$stylesheet."\" />\n";
		}

//		$html .= "<link rel=\"stylesheet\" type=\"text/css\" href=\"".$this->StyleSheet."\" />\n";
		$html .= "</head>\n";
		$html .= "<body><h1>Please Log On</h1>";
		$html .= "<form action=\"index.php\" method=\"post\">";
		$html .= "<p>Username: </p>";
		$html .= "<input type=\"text\" name=\"logonUsername\" />";
		$html .= "<br />";
		$html .= "<p>Password: </p>";
		$html .= "<input type=\"password\" name=\"logonPassword\" />";
		$html .= "<br />";
		$html .= "<input type=\"submit\" value=\"Submit\" />";
		$html .= "</form>";
		$html .= "</body>\n";
		$html .= "</html>\n";
		echo $html;
	}
}

?>